#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :FileOperator_26.py
# @Time      :2020/6/22 16:54
# @Author    :Administrator

with open("test.txt", "wt+") as out_file:
    out_file.write("该文本会写入到文件中\n看到我了吧!")
    out_file.seek(0, 0)
    text = out_file.read()
    print(text)
